
import 'package:flutter/material.dart';
import 'package:mvvmdemo/viewmodel/buiness/loginviewmodel.dart';
class LoginView extends StatelessWidget{
  const LoginView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Center(
           child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children:[
              const TextField(),
              const TextField(),
              TextButton(
                  child:  const Text('登录'),
                  onPressed: (){
                    LoginViewModel.getLoginViewModel()!.login(context);

                  }
              ),

            ],
          ),
    );
  }
}
